FROM php:7.4-apache
COPY install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions \
    && apt-get update \
    && cp /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled/
RUN install-php-extensions pdo_mysql pcntl zip gd